<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>日期显示</title>
</head>
<body>
<h1>客户端JS显示日期</h1>
<p id='date'></p>
<script>
let d=new Date()
document.querySelector('#date').innerText=d
</script>
</body>
</html>